const { describe, it } = require("node:test");
const assert = require("node:assert");

const { clone } = require("../lib/object.js");

describe("object.js", function () {
  it("clone", function () {
    const obj = { value: 0, arr: [{ value: 1 }, { value: 2 }] };
    const cloned = clone(obj);
    obj.arr[0].value = 3;
    assert.notDeepStrictEqual(obj, cloned);
  });
});
